package com.sun.service;

import com.sun.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sun.entity.R;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SunRui
 * @since 2025-01-13
 */
public interface ICategoryService extends IService<Category> {

    R insert(Category category);

    R delete(Integer id);

    int update(Category category);

    R selectAll(Integer page,Integer size);

    R selectByName(String name, Integer page, Integer size);
}
